var mySwiper = new Swiper('.swiper-container', {
    direction: 'horizontal',
    loop: true, // 循环模式选项
    autoplay: {
        delay: 2000,
    },
    // 分页器
    pagination: {
        el: '.swiper-pagination',
        dynamicBullets: true,
        dynamicMainBullets: 3
    },

    // 前进后退按钮
    navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
    },

});
mySwiper();

